package com.gov.dna.project.controller;


import com.gov.dna.base.controller.BaseController;
import com.gov.dna.project.entity.Project;
import com.gov.dna.project.service.ProjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;


/**
 * 项目
 * @author (作者) Dong Jie 154046519@qq.com
 * @version V1.0
 * @date 2018/12/6 15:20
 * @since (该版本支持的JDK版本) 1.8
 */
@RestController
@RequestMapping("/project")
@AllArgsConstructor
@Api(value="项目Controller",tags = {"项目"})
public class ProjectController extends BaseController<ProjectService, Project> {


	@PostMapping("/updateStatus")
	@ApiOperation(value = "更新项目状态projectStatus", notes = "更新项目状态projectStatus", httpMethod = "POST")
	public Boolean updateStatus(@Valid @RequestBody Project project) {
		return baseService.updateStatus(project);
	}

}
